import Vue from 'vue'
import Router from 'vue-router'
import HelloWorld from '@/components/HelloWorld'
import MyElementUi from "../components/MyElementUi";
import MyButton from "../components/MyButton";
import MyTable from "../components/MyTable";
import DepartmentTable from "../components/DepartmentTable";

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'HelloWorld',
      component: HelloWorld
    }, {
      path: '/e',
      name: 'MyElementUi',
      component: MyElementUi
    },{
      path: '/myButton',
      name: 'MyButton',
      component: MyButton
    },{
      path: '/myTable',
      name: 'MyTable',
      component: MyTable
    },
    {
      path: '/departmentTable',
      name: 'DepartmentTable',
      component: DepartmentTable
    }
    ]
})
